import request from "@/utils/request";
import { ParseData } from "@/utils/utils";

// 获取虚拟用户列表分页
export const GetVirtualUserList = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xuni?${ParseData(data)}`,
  });
};
// 添加虚拟用户
export const AddVirtualUser = (data: any) => {
  return request({
    method: "POST",
    url: `/yonghu/xuni`,
    data
  });
};
// 发布虚拟用户视频
export const AddVirtualUserVideo = (data: any) => {
  return request({
    method: "POST",
    url: `/yonghu/xuni/shipin`,
    data
  });
};
// 删除发布虚拟用户视频
export const DeleteVirtualUserVideo = (data: any) => {
  return request({
    method: "DELETE",
    url: `/yonghu/xuni/shipin/${data.id}`,
  });
};
// 查询虚拟用户
export const GetVirtualUser = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xuni/${data.id}`,
  });
};
// 编辑虚拟用户
export const EditVirtualUser = (data: any) => {
  return request({
    method: "PUT",
    url: `/yonghu/xuni`,
    data
  });
};
// 获取虚拟用户视频列表
export const GetVirtualUserVideoList = (data: any) => {
  return request({
    method: "GET",
    url: `/yonghu/xuni/shipin?${ParseData(data)}`,
  });
};
// 删除虚拟用户
export const DeleteVirtualUser = (data: any) => {
  return request({
    method: "DELETE",
    url: `/yonghu/xuni/${data.id}`,
  });
};
